package com.clouddot.baipai.module;


import com.clouddot.baipai.contract.IH_UMainActivityContract;
import com.clouddot.baipai.model.H_UMainActivityModel;
import com.clouddot.baipai.presenter.H_UMainActivityPresenter;

import dagger.Module;
import dagger.Provides;

@Module
public class H_UMainActivityModule {

    private IH_UMainActivityContract.IView mView;

    public H_UMainActivityModule(IH_UMainActivityContract.IView view) {
        mView = view;
    }

    @Provides
    public IH_UMainActivityContract.IPresenter providerPresenter() {
        return new H_UMainActivityPresenter(mView, new H_UMainActivityModel(mView.getContext()));
    }
}
